package edu.sctu.zhoumengxue.day201506.day20150620;
import java.util.Scanner;
/**给给定成绩加分
 * 使用Scanner类
 * Created by user12 on 2015/6/20.
 */
public class Score {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入成绩：");

        int score = input.nextInt();
        int cout = 0;

        System.out.println("加分前的成绩："+score);

        while (score<60){
            score++;
            cout++;
        }

        System.out.println("加分后的成绩："+score);
        System.out.println("共加了"+cout+"次！");
    }
}
